package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.client.HystrixClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 课工场
 * @since 2023/9/2
 */
@RestController
@RequestMapping("openFeign")
public class OPenFeignController {

    @Autowired
    private HystrixClient hystrixClient;

    @GetMapping("m1")
    public String method1(Integer id){
        String s = hystrixClient.method1(id);
        return "OPenFeignController ok result =  "+s;
    }
}
